package store

import (
	"auth/model"
	"auth/model/entity"
)

type IJob interface {
	Create(e *entity.Job) (int64, error)
	Find(id int64) (*entity.Job, error)
	Update(id int64, updates map[string]interface{}) error
	Delete(id int64) error
	List(in *model.JobListRequest) (int, []*entity.Job, error)
	FindByParameter(in *model.JobInfo) (*entity.Job, error)
	IsExistJobName(notEqId int64, jobName string) error
	FindByUserId(userId int64) ([]*entity.Job, error)
}
